DBEXPRESS DRIVER FOR SYBASE ASE STOREPROC DEMO

---------------------------------------------------------------------------------
Thank you for your interest in the VISOCO Software offering.

In this demo we demonstrate the dbExpress Sybase Driver features.

We demonstrate using Stored Proc in this demo.

For demonstration we used:
- Borland Kylix 2, 3
- VISOCO dbExpress driver for Sybase ASE
- Database server Sybase ASE

In this demo we didnt intent to provide a complete description of how to work 
with the Stored Proc using the dbExpress technology and Sybase ASE, but we 
only tried to share some ideas and express our own view on how it can be done.

STEP BY STEP.
---------------------------------------------------------------------------------

After opening the *.dpr file you will see the project form. 

1. Button "Create Table"  use this button to create a "customer" table in the 
   "test_sp" database
2. Button "Create SP" - use this button to create the necessary stored proc set
   in the "test_sp" database
3. Button "Drop SP" - use this button to remove the stored proc set from the 
   "test_sp" database 
4. Button "Drop table" - use this button to remove the "customer" table from the
   "test_sp" database

In order to get satisfactory results, please follow the instructions. In case you
skip some steps, error messages may appear.

DESCRIPTION OF STORED PROC
---------------------------------------------------------------------------------
sp_insertCustomer creates a new record in the customer table and returns its id.
sp_modifyCustomer modifies a record.
sp_deleteCustomer deletes a record.

create procedure sp_insertCustomer
IN @a_firstname varchar(55),
IN @a_lastname varchar(55),
IN @a_email varchar(20),
OUT @a_id int
as
insert into customer(firstname, lastname, e_mail) values(@a_firstname, @a_lastname, @a_email)
SELECT  @a_id = @@identity

create procedure sp_modifyCustomer
IN @a_id int,
IN @a_firstname varchar(55),
IN @a_lastname varchar(55),
IN @a_email varchar(20)
as
update customer set firstname = @a_firstname, lastname = @a_lastname, e_mail = @a_email where id  = @a_id

create procedure sp_deleteCustomer
IN @a_id int
as
delete from customer where id  = @a_id


SUPPORT AND WEB RESOURCES
-------------------------------------------------------------------------------
If you have any questions, please contact us at: support@visoco.com. We are 
interested in regular contacts with our customers so we are looking forward
to your comments, criticism, wishes, and bug reports.

You can also email your problems and/or questions to:
           support@visoco.com
           sales@visoco.com

If some features are not available now, but you want to see them in our software,
please, suggest: newfeature@visoco.com

Visit our site for the latest news:
           http://www.visoco.com/ 

Downloads the latest version of dbExpress driver for Sybase:
           http://www.visoco.com/download/

Also please visit the forum dedicated to the discussions of this product at
           http://visoco.com/forum/

Best regards,
dbExpress Driver for Sybase team,
VISOCO Software.
Email : support@visoco.com
Web : http://www.visoco.com

----------------------------------------------------------------------------------
Copyright (c) 2001-2004 VISOCO Software
All Rights Reserved
